redis backlog 发表于 2017-07-12 | 分类于 redis | | 阅读次数 一、Redis配置设置backlog=10 1234567daemonize yespidfile /var/run/redis-6379.pidport 6379tcp-backlog 10logfile "6379.log"dbfilename dump-6379.rdbdir /opt/soft/redis/data/ 二、客户端12 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317world-0world-1world-2world-3world-4world-5world-6world-7world-8world-9world-10world-11world-12world-13world-14world-15world-16world-17..........world-36world-37world-38world-39world-40world-41world-42world-43world-44world-45world-46world-47world-48world-49world-50world-51world-52world-53world-54world-55world-56world-57world-58world-59world-60world-61world-6222:35:37.171 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:35:39.185 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:35:41.194 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted...............22:35:59.334 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:01.343 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:03.354 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:05.372 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:07.382 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:09.393 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:11.401 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:13.413 [main] ERROR RedisBacklogTest - java.net.SocketTimeoutException: Read timed outredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:13.919 [main] ERROR RedisBacklogTest - java.net.SocketException: Connection resetredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection reset at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:13.933 [main] ERROR RedisBacklogTest - java.net.SocketException: Connection resetredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection reset at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:13.945 [main] ERROR RedisBacklogTest - java.net.SocketException: Connection resetredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection reset at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:13.956 [main] ERROR RedisBacklogTest - java.net.SocketException: Connection resetredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection reset at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-2.9.0.jar:na] at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Protocol.read(Protocol.java:215) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:259) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Connection.getBulkReply(Connection.java:248) ~[jedis-2.9.0.jar:na] at redis.clients.jedis.Jedis.get(Jedis.java:153) ~[jedis-2.9.0.jar:na] at RedisBacklogTest.main(RedisBacklogTest.java:21) ~[classes/:na]Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_79] at java.net.SocketInputStream.read(SocketInputStream.java:108) ~[na:1.7.0_79] at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:196) ~[jedis-2.9.0.jar:na] ... 8 common frames omitted22:36:13.970 [main] ERROR RedisBacklogTest - java.net.SocketException: Co ... 8 common frames omitted 12345678910111213141516171819202122232425262728293031323334353637LISTEN 0 10 *:6379 *:*LISTEN 1 10 *:6379 *:*LISTEN 1 10 *:6379 *:*LISTEN 2 10 *:6379 *:*LISTEN 2 10 *:6379 *:*LISTEN 3 10 *:6379 *:*LISTEN 3 10 *:6379 *:*LISTEN 4 10 *:6379 *:*LISTEN 4 10 *:6379 *:*LISTEN 5 10 *:6379 *:*LISTEN 5 10 *:6379 *:*LISTEN 6 10 *:6379 *:*LISTEN 6 10 *:6379 *:*LISTEN 7 10 *:6379 *:*LISTEN 7 10 *:6379 *:*LISTEN 8 10 *:6379 *:*LISTEN 8 10 *:6379 *:*LISTEN 9 10 *:6379 *:*LISTEN 9 10 *:6379 *:*LISTEN 10 10 *:6379 *:*LISTEN 10 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:*LISTEN 11 10 *:6379 *:* 1234567891011121314151617181920212223242526272829import java.util.concurrent.TimeUnit;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import redis.clients.jedis.Jedis;/** * @author fulei.fl 2017年11月22日 下午10:03:54 */public class RedisBacklogTest { private static Logger logger = LoggerFactory.getLogger(RedisBacklogTest.class); public static void main(String[] args) { for (int i = 0; i <= 500; i++) { try { Jedis jedis = new Jedis("59.110.27.153");// jedis.set("hello-" + i, "world-" +i); System.out.println(jedis.get("hello-" + i)); TimeUnit.MILLISECONDS.sleep(100); } catch (Exception e) { logger.error(e.getMessage(), e); } } }}